
public class Chip {
	protected int numChips;
	
	public Chip() {
		numChips = 100;
	}
	
	public Chip(int n) {
		numChips = n;
	}
	
	public void AddChips(int n) {
		numChips += n;
	}
	
	public int RemoveChips(int n) {
		numChips -= n;
		return n;
	}
	
	public int RemoveChips(double d) {
		int ammount = (int) (numChips * d);
		numChips -= ammount;
		return ammount;
	}
	
	public int AllIn() {
		int allIn = numChips;
		numChips = 0;
		return allIn;
	}
	
	public int NumChips() {
		return numChips;
	}
}
